#ifndef INGREDIENT_H_
#define INGREDIENT_H_

#include <string>
#include <iostream>

using namespace std;


struct Ingredient {
public:
	// constructors
	Ingredient () {}
	Ingredient(int ingr_id, int rec_id, float am, string unit, string nam):ingredient_id(ingr_id),recipe_id(rec_id),amt(am),units(unit),name(nam){}
   // utility functions
	string display() const;
	//get functions created by Andre
	int get_ingredient_id()
	{
		return ingredient_id;
	}
	
	int get_recipe_id()
	{
		return recipe_id;
	}
	
	float get_amount()
	{
		return amt;
	}
	
	string get_units()
	{
		return units;
	}
	
	string get_name()
	{
		return name;
	}

private:
   //constants  

   // private data
	int ingredient_id;
	int recipe_id;
	float amt;
	string units;
	string name;
};

istream& operator>>(istream &stream, Ingredient &ingr);
ostream& operator<<(ostream &stream, Ingredient &ingr);


#endif //INGREDIENT_H_
